package com.bbzn.user.client.service.impl;

import com.bbzn.user.client.dto.user.UserProcessDTO;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.bbzn.user.client.dao.user.UserProcessMapper;
import java.util.List;
import com.bbzn.user.client.dataobject.UserProcess;
import com.bbzn.user.client.service.UserProcessService;

@Service
public class UserProcessServiceImpl implements UserProcessService {

    @Resource
    private UserProcessMapper userProcessMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return userProcessMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(UserProcess record) {
        return userProcessMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(UserProcess record) {
        return userProcessMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(UserProcess record) {
        return userProcessMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(UserProcess record) {
        return userProcessMapper.insertSelective(record);
    }

    @Override
    public UserProcess selectByPrimaryKey(Long id) {
        return userProcessMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(UserProcess record) {
        return userProcessMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserProcess record) {
        return userProcessMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<UserProcess> findByAll(UserProcess userProcess) {
        return userProcessMapper.findByAll(userProcess);
    }

    @Override
    public int updateBatch(List<UserProcess> list) {
        return userProcessMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<UserProcess> list) {
        return userProcessMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<UserProcess> list) {
        return userProcessMapper.batchInsert(list);
    }

    @Override
    public List<UserProcessDTO> selUserProcessListByCompany(UserProcess record) {
        return userProcessMapper.selUserProcessListByCompany(record);
    }

    @Override
    public List<UserProcessDTO> selUserProcessListByUser(UserProcess record) {
        return userProcessMapper.selUserProcessListByUser(record);
    }

}

